import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

export default new Vuex.Store({
    state: {
        count: 1 //2
    },
    mutations: {
        addCount(state, n) {
            state.count += n
        },
        removeCount(state, n) {
            state.count -= n
        }
    },
    actions: {},
    getters: {},
    modules: {}
})
